package com.zhongkun.datahome.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhongkun.datahome.service.domain.DataAssets;
import com.zhongkun.datahome.service.req.qry.assets.DataAssetsQry;
import com.zhongkun.datahome.service.res.assets.DataAssetsVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 数字资产Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
public interface DataAssetsMapper extends BaseMapper<DataAssets> {
    IPage<Long> pageIds(IPage<Long> page, @Param("qry") DataAssetsQry qry);

    List<DataAssetsVo> getList(@Param("qry") DataAssetsQry qry);

    List<DataAssets> listByHouseId(@Param("qry") DataAssetsQry qry);

    @Select("select count(*) from data_assets where group_type_id = #{groupTypeId} and del_flag = 0")
    int selectCountByAssetsTypeId(Long groupTypeId);
}
